<div class="main_content">
	<table width="98%" name="tab_main" id="tab_main" class="tab_main" border="0" cellpadding="0" cellspacing="1" align="left">
	<thead>
		<tr>
			<th width="5%">序号</th>
			<th width="30%">计划投资自编号</th>
			<th>申报人</th>
			<th width="12%">申请日期</th>
			<!--<th>计划备注</th>-->
			<th width="35%">操作</th>
		</tr>
	</thead>
	<tbody>
	{%foreach from=$arr key=key item=arr_item%}
		<tr class="list_{%$key+1%}">
			<td>
				{% if $zy_mc_type_arr[$arr_item.investment_no] %}
					<div id="sign_{%$key+1%}" class="sign_pm pcursor sign_plus" onclick="showList(this,{%$key+1%})"></div>
				{% else %}
					<div class="sign_pm sign_minus"></div>
				{% /if %}
			</td>
			<td>{%$arr_item.investment_no%}</td>
			<td>{%$admin_info[$arr_item.admin_user_id]%}</td>
			<td>{%$arr_item.application_date|date_format:"%Y-%m-%d"%}</td>
			<!--<td>{%$arr_item.plan_notes%}</td>-->
					
			<td>
				<a href='index.php?c=zy_nvestment&m=browse&investment_no={%$arr_item.investment_no%}'>查看</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_nvestment&m=edit&investment_no={%$arr_item.investment_no%}'>修改</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_nvestment&m=del&investment_no={%$arr_item.investment_no%}' onclick="return confirm('您确认删除吗？')">删除</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_mc_type&m=add&investment_no={%$arr_item.investment_no%}'>添加设备</a>&nbsp;&nbsp;
				{% if $zy_mc_type_arr[$arr_item.investment_no] %}
					<a href='index.php?c=zy_plan_reply&m=add&investment_no={%$arr_item.investment_no%}'>批复</a>&nbsp;&nbsp;
						{%if $arr_item.is_reply%}
							<a href='index.php?c=zy_sell&m=add&investment_no={%$arr_item.investment_no%}'>执行</a>
						{%/if%}
				{%/if%}
				
			</td>
		</tr>
		<tr class="hide_chunk">
			<td colspan="6">
				<div class="arrow_open"></div>
				
				<div class="load_list">
					<table width="96%" name="tab_sub" id="tab_sub" class="tab_sub" border="0" cellpadding="0" cellspacing="1" align="left">
						<thead>
							<tr>
								<th>中文名称</th>
								<th>英文名称</th>
								<!--<th>购置性质</th>-->
								<th>规格型号</th>
								<th>申请数量</th>
								<!--<th>制造周期</th>-->
								<th>造价</th>
								<!--<th>管理费</th>-->
								<!--<th>增值税</th>-->
								<th>总价</th>
								<th>所属项目</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>	
							{%if $zy_mc_type_arr[$arr_item.investment_no]%}
								{%foreach item=list from=$zy_mc_type_arr[$arr_item.investment_no]%}
								<tr>
									<td>{%$list.mc_cn_name%}</td>
									<td>{%$list.mc_en_name%}</td>
									<!--<td>{%$sell_type_arr[$list.sell_type_id]%}</td>-->
									<td>{%$list.mc_type_model%}</td>
									<td>{%$list.plan_no%}</td>
									<!--<td>{%$list.make_time%}</td>-->
									<td>{%$list.make_cost%}</td>
								<!--	<td>{%$list.manage_cost%}</td>-->
								<!--	<td>{%$list.vat%}</td>-->
									<td>{% $list.make_cost+$list.manage_cost+$list.vat%}</td>
									<td>{%$project_arr[$list.project_id]%}</td>
									<td>
										<a href='index.php?c=zy_mc_type&m=browse&v_mc_id={%$list.v_mc_id%}'>查看</a>&nbsp;&nbsp;
										<a href='index.php?c=zy_mc_type&m=edit&v_mc_id={%$list.v_mc_id%}'>修改</a>&nbsp;&nbsp;
										<a href='index.php?c=zy_mc_type&m=del&v_mc_id={%$list.v_mc_id%}' onclick="return confirm('您确认删除吗？')">删除</a>&nbsp;&nbsp;
									</td>
								</tr>
								{%/foreach%}
							{%/if%}
						</tbody>										
					</table>
				</div>
			</td>
		</tr>	
	{%/foreach%}
	</tbody>
	{%if $arr_item %}
	<tfoot>
		<tr>
			<td colspan="6"><div id="pager">{%$page_footer%}</div></td>
		</tr>
	</tfoot>
	{%/if%}
	</table>
	
	<div class="btn_list">
		<span class="btn_add" onclick="location.href='?c=zy_nvestment&m=add'">添 加</span>
	</div>
</div>
